home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2 Examples.sit / Raven 1.2 Examples / BoxPaint / Source / App.h < prev    next >
Text File  |  1997-02-08  |  1KB  |  49 lines

  1. /*
  2.  *  File:       App.h
  3.  *  Summary:       Application object.
  4.  *  Written by: Jesse Jones
  5.  *
  6.  *  Copyright ゥ 1996 Jesse Jones. All Rights Reserved.
  7.  *
  8.  *  Change History (most recent first):    
  9.  *
  10.  *         <->     5/25/96    JDJ        Created
  11.  */
  12.  
  13. #pragma once
  14.  
  15. #include <ZDocApplication.h>
  16.  
  17.  
  18. // ===================================================================================
  19. //    class CApplication
  20. // ===================================================================================
  21. class CApplication : public TDocApplication {
  22.  
  23.     typedef TDocApplication Inherited;
  24.  
  25. //-----------------------------------
  26. //    Initialization/Destruction
  27. //
  28. public:
  29.     virtual             ~CApplication();
  30.     
  31.                           CApplication();
  32.           
  33.     static     CApplication* Instance()                {return dynamic_cast<CApplication*>(msInstance);}
  34.  
  35. //-----------------------------------
  36. //    Inherited API
  37. //
  38. protected:
  39.     virtual TDocument*    OnCreateDoc();
  40.     
  41.     virtual void         OnOpenWithoutDoc();
  42.  
  43.     virtual void         OnAboutBox();
  44.                         
  45.     virtual bool         OnMenuCommand(const MenuCommand& command);
  46.         
  47.     virtual bool         OnCommandStatus(const MenuCommand& command, SCommandStatus& status);
  48. };
  49.